package com.cisystem.system.domain;

import com.cisystem.common.annotation.Excel;
import com.cisystem.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 邮箱账号对象 sys_mail_account
 *
 * @author ruoyi
 * @date 2023-10-24
 */
public class SysMailAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String mail;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** SMTP 服务器域名 */
    @Excel(name = "SMTP 服务器域名")
    private String host;

    /** SMTP 服务器端口 */
    @Excel(name = "SMTP 服务器端口")
    private Long port;

    /** 是否开启 SSL */
    @Excel(name = "是否开启 SSL")
    private Integer sslEnable;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMail(String mail)
    {
        this.mail = mail;
    }

    public String getMail()
    {
        return mail;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setHost(String host)
    {
        this.host = host;
    }

    public String getHost()
    {
        return host;
    }
    public void setPort(Long port)
    {
        this.port = port;
    }

    public Long getPort()
    {
        return port;
    }
    public void setSslEnable(Integer sslEnable)
    {
        this.sslEnable = sslEnable;
    }

    public Integer getSslEnable()
    {
        return sslEnable;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("mail", getMail())
                .append("username", getUsername())
                .append("password", getPassword())
                .append("host", getHost())
                .append("port", getPort())
                .append("sslEnable", getSslEnable())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
